package com.enation.app.javashop.api.client;

import com.enation.app.javashop.service.goods.TagsManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

/**
 * 商品标签客户端控制器
 *
 * @author zh
 * @version v7.0
 * @date 19/3/21 下午3:40
 * @since v7.0
 */
@RestController
@RequestMapping("/client/goods")
@ApiIgnore
public class TagClientController {

    @Autowired
    private TagsManager tagsManager;

    @PostMapping("/tag")
    public void addGoodsTags(@RequestParam("seller_id") Long sellerId) {
        tagsManager.addShopTags(sellerId);
    }
}
